<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        box-sizing: border-box;
      }
      .chat-container {
        width: 300px;
        height: 400px;
        background: #1e1e2b;
        position: relative;
      }
      .chat-content {
        width: 280px;
        height: 400px;
        background: #2f2f40;
        z-index: 11;
        margin: 0 auto;
        padding: 10px;
        border-radius: 12px;
      }
      .q-img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-bottom: 5px;
      }
      .chat-item {
        margin-bottom: 10px;
      }
      .content-msg {
        color: #fff;
        word-break: break-word;
      }
      .more-btn {
        height: 30px;
        line-height: 30px;
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(25, 34, 54, 0.8);
        color: #fff;
      }

      .read-more-btn {
        height: 35px;
        line-height: 35px;
        text-align: center;
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
      }

      .read-more-btn div {
        background-color: #436bff;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      }

      .read-more-btn button:hover {
        background-color: #365ace;
      }
    </style>
  </head>
  <body>
    <div class="chat-container">
      <div class="chat-content">
        <div class="chat-item">
          <img
            src="../images/zx-question.png"
            class="avatar q-img"
            src=""
            alt=""
          />
          <div class="content-msg">11111</div>
        </div>
        <div class="chat-item">
          <img
            src="../images/zx-answer.png"
            class="avatar a-img"
            src=""
            alt=""
          />
          <div class="content-msg">
            222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
          </div>
        </div>


        
      </div>
      <div class="read-more-btn">
        <div>查看更多</div>
      </div>
    </div>

    <!-- <div class="chat-container">
        <div class="chat-content">
            <div class="user-message">
                <p>梳理相关新闻报道：字节跳动期权回购：在职员工价涨 5.79%</p>
              </div>
              <div class="assistant-message">
                <p>Kimi:<br>根据搜索结果，以下是对字节跳动期权的详细梳理...</p>
              </div>
              <div class="read-more-btn">
                <button>阅读全文</button>
              </div>
        </div>
      </div> -->
    <script>
      // function setRemUnit() {
      //   const baseWidth = 750; // 基准宽度
      //   const html = document.documentElement;
      //   const clientWidth = html.clientWidth;

      //   // 设置 html 元素的 font-size
      //   html.style.fontSize = `${(clientWidth / baseWidth) * 100}px`;
      // }

      // // 初次加载时设置
      // setRemUnit();

      // // 监听窗口尺寸变化
      // window.addEventListener("resize", setRemUnit);
    </script>
  </body>
</html>
